package com.wechat.back.service;

import com.wechat.back.pojo.comment.ArticleComment;
import com.wechat.back.pojo.comment.PoiComment;
import com.wechat.back.pojo.tools.PageBean;

import java.util.List;

public interface CommentService {
    void addArticleComment(ArticleComment articleComment);

    void addPoiComment(PoiComment poiComment);

    PageBean<ArticleComment> listArticleComment(Integer pageNum, Integer pageSize,String username, Integer commentId, Integer userId, Integer articleId);

    PageBean<PoiComment> listPoiComment(Integer pageNum, Integer pageSize,String username,Integer commentId,Integer userId,Integer poiId);

    void deleteArticleComment(Integer commentId);

    void deletePoiComment(Integer commentId);

    void updateArticleComment(ArticleComment articleComment);

    void updatePoiComment(PoiComment poiComment);

    void updateArticleLikeCount(Integer likeCount, Integer commentId);

    void updatePoiLikeCount(Integer likeCount, Integer commentId);
}
